import Vue from 'vue'
import VueRouter from 'vue-router'
import Login from "../views/Login.vue";
// import test from "../views/test.vue";
import home from "../views/home.vue"

Vue.use(VueRouter)
const routes = [
    {
        path: '/home',
        name: 'home',
        component: () => import(/* webpackChunkName: "login" */ '../views/home.vue'),
    },
    {
        path: '/login',
        name: 'login',
        component: () => import(/* webpackChunkName: "login" */ '../views/Login.vue'),
    },
    // {
    //     path: '/test',
    //     name: 'test',
    //     component: () => import(/* webpackChunkName: "login" */ '../views/test.vue'),
    // },
]

const router = new VueRouter({
    mode: 'hash',
    base: process.env.BASE_URL,
    routes
  })
  
  export default router